#include "StdAfx.h"
#include "GCardMgr.h"
#include "GTeam.h"
#include "Role.h"

GCardMgr gCardmgr;

GCardMgr& GCardMgr::Inst()
{
	return gCardmgr;
}

GCardMgr::GCardMgr(void)
{
}

GCardMgr::~GCardMgr(void)
{
}
void GCardMgr::Draw(int w, int h)
{
	if (GTeam::Inst().GetLeftMember() == NULL) return;
	glEnable(GL_BLEND);  
	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 
	GTeam::Inst().GetLocalMember()->Draw(w,h);
	GTeam::Inst().GetLeftMember()->DrawLeft(w,h);
	GTeam::Inst().GetRightMember()->DrawRight(w, h);
	glDisable(GL_BLEND);
}